package com.example.activiti.domain.dto;

import com.example.activiti.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 请假对象 workflow_leave
 *
 * @author danny
 * @date 2020-10-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WorkflowLeave extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;

    /**
     * 请假类型
     */
    private String type;

    /**
     * 标题
     */
    private String title;

    /**
     * 原因
     */
    private String reason;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date leaveStartTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date leaveEndTime;


    private String instanceId;
    private String taskName;

    /**
     * 状态
     */
    private String state;

    /**
     * 创建人
     */
    private String createName;
}
